package com.xuan.service;
import com.xuan.dao.GameDao;
import com.xuan.model.Game;
import java.util.List;
public class GameService {
    private GameDao gameDao = new GameDao();

    public boolean add (Game game) {
        return gameDao.add(game);
    }

    public boolean delete (int id) {
        return gameDao.delete(id);
    }

    public boolean update (Game game) {
        return gameDao.update(game);
    }

    public List<Game> getAll (int size, int page) {
        return gameDao.getAll(size,page);
    }

    public long getPageSize (int size) {
        return gameDao.getPageSize(size);
    }

    public Game get (int id) {
        return gameDao.get(id);
    }
}
